package com.htc.repository;

import com.htc.entity.HouseTag;
import org.springframework.data.repository.CrudRepository;

import java.util.List;

/**
 * @author: htc
 * @date: Created in 14:23 2018/5/24.
 */
public interface HouseTagRepository extends CrudRepository<HouseTag, Long>{

    List<HouseTag>  findAllByHouseId(Long id);

    HouseTag findByNameAndHouseId(String name, Long houseId);

    List<HouseTag> findAllByHouseIdIn(List<Long> houseIds);
}
